import base from '@/api/baseurl';
import request from '@/utils/request'

 

/* 曲线维护选项-所有 */
export function transfercurveGpFingTransferCurvecodename(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/fingTransferCurvecodename',
    method: 'get',
    params: query
  })
}

/* 曲线维护选项-被选中的参数 query:id */
export function transfercurveGpFingTransferCurvecodenamein(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/fingTransferCurvecodenamein',
    method: 'get',
    params: query
  })
}

  
// 修改曲线维护参数
export function transfercurveGpAddTransferCurveGpZi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/addTransferCurveGpZi',
    method: 'post',
    data
  })
}


/**
 * 
 * @param {根据类型查询主表} query 
 * @returns 
 */
export function findPriceuler(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpr/findPriceuler',
    method: 'get',
    params: query
  })
}

//单行删除
export function daleteTransferCurveGp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/atigs/del',
    method: 'get',
    params: query
  })
}


export function insertFindAdjustTheItemGenerationScenario_m(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/atigs/add',
    method: 'post',
    data
  })
}

export function updateAdjustTheItemGenerationScenario_m(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/atigs/update',
    method: 'post',
    data
  })
}

export function deletetransferCurveGpBatch(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/atigs/del',
    method: 'post',
    data
  })
}
export function findType(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/tfpr/findType',
    method: 'get',
    params: query
  })
}
